package services;

import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import modelo.Menu;

@ManagedBean(name = "imageService", eager = true)
@ApplicationScoped
//@Stateless
public class ImageService {

    @PersistenceContext
    private EntityManager em;

    public Menu find(Integer id) {
        return em.find(Menu.class, id);
    }

}
